package apiday04home;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Lambda {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        //Lambda写法
        Collections.sort(list, (String o1, String o2) -> {
            return o1.length() - o2.length();

        });
    }
}
